package com.example.vueserver.vueserver.controller;

import com.example.vueserver.vueserver.bean.SysUserRole;
import com.example.vueserver.vueserver.service.SysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/userrole")
public class SysUserRoleController {
    @Autowired
    private SysUserRoleService sysUserRoleService;

    @RequestMapping("/listrelations")
    public List<SysUserRole> list(){
        return this.sysUserRoleService.listAll();
    }
}
